// 引入自己封装的 PageTools 组件  进行全局注册
import PageTools from '@/components/PageTools'

import UploadeExcel from './UploadeExcel'

import UploadeImg from './UploadeImg'

import ImageHolder from './ImageHolder'
// export default {
//   install(Vue) {
//     Vue.component('PageTools', PageTools)
//   }
// }

// 仿照 elementUI 的方法
const components = [
  PageTools,
  UploadeExcel,
  UploadeImg,
  ImageHolder
]
export default {
  install(Vue) {
    components.forEach(component => {
      Vue.component(component.name, component)
    })
  }
}
